﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using AjaxControlFramework;

using BingMapsSample.Components;

namespace BingMapsSample
{
    public partial class Default : System.Web.UI.Page
    {
        //------// Properties \\--------------------------------------------\\
        private string _keyword = null;
        public string Keyword
        {
            get
            {
                if (_keyword == null)
                {
                    if (base.Request.Params["keyword"] != null)
                    {
                        _keyword = base.Request.Params["keyword"];
                    }
                    else
                    {
                        _keyword = String.Empty;
                    }
                }

                return _keyword;
            }
        }


        private bool? _searchIsActive = null;
        public bool SearchIsActive
        {
            get
            {
                if (!_searchIsActive.HasValue)
                {
                    if (Keyword.Length > 0)
                    {
                        _searchIsActive = true;
                    }
                    else
                    {
                        _searchIsActive = false;
                    }
                }

                return _searchIsActive.Value;
            }
        }
        //------\\ Properties //--------------------------------------------//



        //------// Methods \\-----------------------------------------------\\
        
        
        
        #region "Event Handlers"



        #endregion
        //------\\ Methods //-----------------------------------------------//
    }
}
